	<?php $this->load->view('admin/partials/subscription_menu'); ?>
	<?php 
		$ci= &get_instance();
	?>
		
	<div class="clrboth"></div>

	<h3>Email Subscription</h3>
	<?php $buttons = array('buttons'=>array('Add#add_user_email_subs();') );?>
	<?php $this->load->view('admin/partials/buttons', $buttons ); ?>
	
	<div class="clrboth"></div>

	<table border="0" class="table-list">
		<thead>
			<tr> 	 	 	 	
				<th>Username</th>
				<th>Email</th>
				<th>Fullname</th>
				<th>Country</th>
				<th>Manage</th>
			</tr>
		</thead>
		
		<tbody>
			<?php foreach( $items['records'] as $item ): ?>
			<?php 
				$USER = $ci->user_entity->init('id',$item->id);
			?>
			<tr>
				<td><?php echo $USER->getUserName(); ?></td>
				<td><?php echo $USER->getEmail(); ?></td>
				<td><?php echo $USER->getFullName(); ?></td>
				<td><?php echo $USER->getCountry(); ?></td>
				<td>
					<a href="javascript:void(0);" onclick="unsubscription_user_email(<?php echo $item->id;?>);" >UnSubscription</a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<div class="inner"><?php echo $items['pagination']['links'];?></div>

